cmake_minimum_required(VERSION 3.1)
project(DIPLab)

set(CMAKE_CXX_STANDARD 11)

add_library(Bitmap
        typedef.h
        bitmap.c
        bitmap.h
        geometric.h)

add_library(Convert
        typedef.h
        convert.c
        convert.h
        )

add_library(Geometric
        typedef.h
        geometric.c
        geometric.h
        )

target_link_libraries(Geometric Convert Bitmap)

add_executable(hw4
        main.c)

target_link_libraries(hw4 Geometric Convert Bitmap)